Overloading of standard functions (create / new)

Hello, a finding on the overloading of the standard functions.
If we try to overload create, then we loose the original function definitions.
 

int create () {
    print "int create ()" "\n"
    return 0
}
 
string create () {
    print "string create ()" "\n"
    return "ala ma kota"
}
 
int a = create
string b = create
Skip s = create

 


results in "-E- DXL: <Line:11> incorrect use of identifier (create)"
and for

 

//Skip s = create

we have result as expected

Is it possible to somehow access the lost standard functions ? Of course I could try to save the pointer to those functions, and then create my own wrapper that would call the original ones after they are no longer accessible in the current scope (possible ?)...
 


Michal Kraszewski, DOORS heavy user at NSN


Regiss - Thu Jun 17 05:02:28 EDT 2010

Re: Overloading of standard functions (create / new)
Regiss - Thu Jun 17 05:05:55 EDT 2010

Silly me, rephrased the search and voila:

https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14465130&#14465130

Those posts should be deleted, or there should be a possibility to delete a thread if noone has yet replied.


Michal Kraszewski, DOORS heavy user at NSN